PROJ= drap
OBJ = Resources/resources.o main.o canvas.o  \
	shape.o shape_rectangle.o drawPrimitivesWindows.o \
	list.o
CFLAGS =  -Wall -g -mno-cygwin
LDFLAGS =  -mwindows -lcomctl32

all: $(OBJ)
	$(CC) -o $(PROJ) $(OBJ) $(LDFLAGS)

Resources/resources.o: Resources/resources.rc Resources/toolbar.bmp Resources/drap.ico
	windres -i Resources/resources.rc -o Resources/resources.o

TESTOBJ = testShapes.o shape.o shape_rectangle.o \
	drawPrimitivesText.o test.o list.o

test: $(TESTOBJ)
	$(CC) -o test $(TESTOBJ) $(LDFLAGS)

clean:
	rm -f $(OBJ) *.exe *.stackdump
